﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShoppingEntity
{
	/// <summary>
	/// 退货信息实体
	/// </summary>
	public class Returns:BaseDeleteEntity
	{
		/// <summary>
		/// 订单ID
		/// </summary>
		[Column(TypeName = "varchar(36)")]
		public string OrderId { get; set; }

		/// <summary>
		/// 商品ID
		/// </summary>
		[Column(TypeName = "varchar(36)")]
		public string GoodsId { get; set; }

		/// <summary>
		/// 配送员ID
		/// </summary>
		[Column(TypeName = "varchar(36)")]
		public string DistributionId { get; set; }

		/// <summary>
		/// 用户ID
		/// </summary>
		[Column(TypeName = "varchar(36)")]
		public string UserId { get; set; }
		/// <summary>
		/// 状态
		/// </summary>
		public ReturnsStateEnum State { get; set; }
		/// <summary>
		/// 到仓时间
		/// </summary>
		public DateTime SendTime { get; set; }
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreateTime { get; set; }
		/// <summary>
		/// 仓库地址
		/// </summary>
		[Column(TypeName = "varchar(36)")]
		public string Address { get; set; }

		public enum ReturnsStateEnum
		{
			待揽收 = 0,
			配送中 = 1,
			已送达 = 2,
		}
	}
}
